package com.iretailer.report.analyze.device.face.horizon.model;

import java.time.LocalDateTime;
import java.time.OffsetDateTime;

/**
 * @Auther: xjw
 * @Date: 2019/11/22 0022 10:29
 * @Description:
 */
public class Alarm {

    private Long timeStamp;

    private LocalDateTime dateTime;

    private String personId;
    // 图片 bse64
    private String snapShot;
    // 年龄区间，1: [0-18], 2: [19-35], 3: [36-55], 4 56+
    private int age;
    // 1为男性 0 为女性
    private int gender;

    public LocalDateTime getDateTime() {
        return LocalDateTime.ofEpochSecond(this.getTimeStamp() / 1000, 0, OffsetDateTime.now().getOffset());
    }

    public Long getTimeStamp() {
        return timeStamp;
    }

    public void setTimeStamp(Long timeStamp) {
        this.timeStamp = timeStamp;
    }

    public String getPersonId() {
        return personId;
    }

    public void setPersonId(String personId) {
        this.personId = personId;
    }

    public String getSnapShot() {
        return snapShot;
    }

    public void setSnapShot(String snapShot) {
        this.snapShot = snapShot;
    }

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }

    public int getGender() {
        return gender;
    }

    public void setGender(int gender) {
        this.gender = gender;
    }
}
